package cn.me.fdfs.service;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by IntelliJ IDEA. User: LZS Date: 11-7-6 Time: 下午1:47
 */
public abstract class BaseService {
  @Autowired
  protected SessionFactory sessionFactory;

  protected Session getSession() {
    return sessionFactory.getCurrentSession();
  }
}
